package cn.edu.zafu.bigdata.x.xiejunjie;

public class TestMathOperations {
    public static void main(String[] args) {
        MathOperations mathOps = new MathOperations();

        // 测试两个整数的加法
        int sumInts = mathOps.add(5, 3);
        System.out.println("两个整数的和为: " + sumInts);

        // 测试两个浮点数的加法
        double sumDoubles = mathOps.add(2.5, 3.1);
        System.out.println("两个浮点数的和为: " + sumDoubles);

        // 测试三个整数的加法
        int sumThreeInts = mathOps.add(1, 2, 3);
        System.out.println("三个整数的和为: " + sumThreeInts);
    }
}
